package com.wuyan.locationdog.ui.device


import com.arcsoft.commonbase.base.BaseBindingActivity
import com.blankj.utilcode.util.ActivityUtils
import com.blankj.utilcode.util.BarUtils
import com.wuyan.locationdog.MainActivity
import com.wuyan.locationdog.databinding.AddSuccessActivityBinding
import com.wuyan.locationdog.help.DeviceHelp
import com.wuyan.locationdog.util.maputil.getDeviceHeadResource


class AddSuccessActivity : BaseBindingActivity<AddSuccessActivityBinding>() {


    override fun initData() {
        BarUtils.transparentStatusBar(this)

        binding.apply {
            deviceName.text = DeviceHelp.addDeviceName
            deviceAvatarUrl.setImageResource(getDeviceHeadResource(DeviceHelp.addDeviceUsageType))
            btnSure.setOnClickListener {
                finish()
            }
            btnGoHome.setOnClickListener {
                ActivityUtils.finishToActivity(MainActivity::class.java, false)
            }
        }

    }

    override fun observe() {
    }

}